package com.kgc.service.impl;

import com.kgc.dao.PerformTypeMapper;
import com.kgc.pojo.PerformType;
import com.kgc.service.PerformTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PerformTypeServiceImpl implements PerformTypeService {
    @Autowired
    PerformTypeMapper performTypeMapper;
    @Override
    @Cacheable(value = "performType")
    public List<PerformType> getPerformType() {
        return performTypeMapper.selectByExample(null);
    }
}
